<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html;charset=utf-8">
		<title>index</title>
		<link rel="stylesheet" type="text/css" href="__CSS__/basic.css">
		<style>
			form{
				width:300px;
				margin:0px auto;
				margin-top:50px;

			}
		</style>
		<script>
			function sub(){
				var ou=document.myForm.name;
				var op=document.myForm.password;
				var oc=document.myForm.code;
				if(ou.value=='' || op.value=='' || oc.value==''){
					alert('用户名或者密码或者验证码不能为空');
				}else{
					document.myForm.submit();
				}
			}
		</script>
	</head>
	<body>
		<form action="__URL__/do_login" method="post" name="myForm">
			用户名：<input type="text" name="name"/><br/>
			密　码：<input type="password" name="password"/><br/>
			验证码：<input type="text" name="code"/><img src="__APP__/Public/code" onclick="this.src=this.src+'?'+Math.random()"><br/>
			<img src="__PUBLIC__/img/login.jpg" onclick="sub()">
		</form>
	</body>
</html>